package com.qianfeng.service.Impl;

import com.qianfeng.entity.Category;
import com.qianfeng.mapper.CategoryMapper;
import com.qianfeng.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;


    @Override
    public List<Category> getCategories() {
        return categoryMapper.getCategories();
    }
}
